import { ProjectAuditSteps } from '@src/utils';

/** 审计方案 */
const AUDIT_PROGRAMMES = { code: 'SOLUTION', name: '审计方案' };
/** 审计通知书 */
const AUDIT_NOTICE = { code: 'NOTICE', name: '审计通知书' };
/** 资料清单 */
const MATERIAL_LIST = { code: 'MATERIAL', name: '资料清单' };
/** 审计发现 */
const AUDIT_FINDING = { code: 'PROBLEM', name: '审计发现' };
/** 审计报告 */
const AUDIT_REPORT = { code: 'REPORT', name: '审计报告' };
/** 审计档案 */
const AUDIT_RECORD = { code: 'RECORD', name: '审计档案' };

/** 项目步骤对应Tabs展示 */
export const PROJECT_STEPS_TABS: { [key: string]: { tabs: SelectOption[] } } = {
  [ProjectAuditSteps.normalStep1]: {
    tabs: [AUDIT_PROGRAMMES],
  },
  [ProjectAuditSteps.normalStep2]: {
    tabs: [AUDIT_PROGRAMMES, AUDIT_NOTICE],
  },
  [ProjectAuditSteps.normalStep3]: {
    tabs: [AUDIT_PROGRAMMES, AUDIT_NOTICE, MATERIAL_LIST, AUDIT_FINDING],
  },
  [ProjectAuditSteps.normalStep4]: {
    tabs: [AUDIT_PROGRAMMES, AUDIT_NOTICE, MATERIAL_LIST, AUDIT_FINDING, AUDIT_REPORT],
  },
  [ProjectAuditSteps.normalStep5]: {
    tabs: [AUDIT_PROGRAMMES, AUDIT_NOTICE, MATERIAL_LIST, AUDIT_FINDING, AUDIT_REPORT, AUDIT_RECORD],
  },
  [ProjectAuditSteps.normalStep6]: {
    tabs: [AUDIT_PROGRAMMES, AUDIT_NOTICE, MATERIAL_LIST, AUDIT_FINDING, AUDIT_REPORT, AUDIT_RECORD],
  },
  [ProjectAuditSteps.sensitiveStep1]: {
    tabs: [AUDIT_PROGRAMMES],
  },
  [ProjectAuditSteps.sensitiveStep2]: {
    tabs: [AUDIT_PROGRAMMES, MATERIAL_LIST, AUDIT_FINDING],
  },
  [ProjectAuditSteps.sensitiveStep3]: {
    tabs: [AUDIT_PROGRAMMES, MATERIAL_LIST, AUDIT_FINDING, AUDIT_REPORT],
  },
  [ProjectAuditSteps.sensitiveStep4]: {
    tabs: [AUDIT_PROGRAMMES, MATERIAL_LIST, AUDIT_FINDING, AUDIT_REPORT, AUDIT_RECORD],
  },
  [ProjectAuditSteps.sensitiveStep5]: {
    tabs: [AUDIT_PROGRAMMES, MATERIAL_LIST, AUDIT_FINDING, AUDIT_REPORT, AUDIT_RECORD],
  },
};
